<template>
  <el-menu
    :default-active="activeIndex"
    class="el-menu-demo"
    mode="horizontal"
    @select="handleSelect"
  >
    <el-menu-item href="#" index="1">Processing Center</el-menu-item>
    <el-menu-item href="#" index="2">item one</el-menu-item>
    <el-menu-item href="#" index="3">Info</el-menu-item>
    <el-menu-item href="#" index="4">Orders</el-menu-item>
  </el-menu>
  <div id="content">
    123456
  </div>

</template>

<script lang="ts" setup>
import { ref } from 'vue'

const activeIndex = ref('1')
const handleSelect = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>

<style>

</style>
